package org.dtrd.modules.record.service;

import org.dtrd.modules.record.entity.bean.DailyInsulinRecordBean;
import org.dtrd.modules.record.entity.bean.InsulinChart;
import org.dtrd.modules.record.entity.bean.InsulinRecordBean;
import org.dtrd.modules.record.entity.po.DtrdEntRdSigninInsulin;

import java.util.List;

/**
 * @author 萧
 * @date:2021-08-22 3:28 下午
 **/
public interface IInsulinRecordService extends IRecordService<DtrdEntRdSigninInsulin> {

    boolean saveOrUpdateInsulinRecord(InsulinRecordBean insulinRecordBean);

    Integer getInsulinRecordDataCount(Integer patientId, String startDate, String endDate);

    List<DailyInsulinRecordBean> getAllGroupedInsulinRecord(Integer patientId, String startDate, String endDate, Integer page, Integer pageSize);

    InsulinChart getInsulinRecordsForChart(int patientId, String startDate, String endDate);
}
